package com.dinglian.ots.vo.buyer;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * 买手注册
 * @author wangbo
 */
@Data
public class BuyerVo {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式错误")
    private String mobile;

    @Email(message = "邮箱不能为空")
    private String email;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message ="店铺名称不能为空")
    private String name;

    @NotBlank(message = "公司名称不能为空")
    private String company;

    @NotBlank(message = "公司介绍不能为空")
    private String introduction;

    @NotBlank(message = "品类不能为空")
    private String categoryIds;

    @NotBlank(message = "风格不能为空")
    private String styleIds;

    private Integer provinceId;

    private Integer cityId;

    @NotNull(message = "上限区间不能为空")
    private Integer priceUpperLimit;

    @NotNull(message = "下限区间不能为空")
    private Integer priceDownLimit;

    @NotNull(message = "产品图片不能为空")
    private MultipartFile[] pictures;

    @NotNull(message = "营业执照不能为空")
    private MultipartFile businessLicense;

    private MultipartFile historyTransaction;

    @NotNull(message = "地址信息不能为空")
    private String addressList;
}
